import {createMemoryHistory, createRouter} from 'vue-router'
import BlindBox from "../blind_box/BlindBox.vue";
import About from "../about/About.vue";
import ReciteWord from "../recite_word/ReciteWord.vue";
import Spinner from "../spinner/Spinner.vue";


const navRoutes = [
    {path: '/blindBox', component: BlindBox, name: '盲盒'},
    {path: '/reciteWord', component: ReciteWord, name: '记单词'},
    {path: '/spinner', component: Spinner, name: '转盘'},
    {path: '/about', component: About, name: '关于'},
]

const navRouter = createRouter({
    history: createMemoryHistory(),
    routes: navRoutes,
})

export {navRouter, navRoutes}